package com.lyn.pluginbazaar.api;

import com.lyn.pluginbazaar.entity.Result;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public interface FileAdapter {

    Result uploadPlugin(MultipartFile file,HttpServletRequest request, HttpServletResponse response);

    Result delete(String fileName);

    void download(String fileName, HttpServletRequest request, HttpServletResponse response);

    void getImage(String fileName,HttpServletResponse response);
}
